﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="listmode.aspx.cs" Inherits="HYSoft.Web.listmode1" %>
<%@ Register Src="~/Controls/menu.ascx" TagName="Menus" TagPrefix="uc3" %>
<%@ Register Src="~/Controls/Search.ascx" TagName="Search" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
     .main
     {
         width:100%;
         height:700px;
         background-color:rgba(185, 188, 194, 0.88);
     }
     .tables
     {
         width:1139px;
         height:700px;
         background-color:White;
         margin-left:auto;
         margin-right:auto;
         margin-top:35px;
     }
     .tables table
     {
         width:800px;
         margin-left:auto;
         margin-right:auto;
         border-top:1px solid #b1b1b1;
         border-right:1px solid #b1b1b1;
     }
     .tables table td
     {
         border-bottom:1px solid #b1b1b1;
         border-left:1px solid #b1b1b1;
     }
     .toplogo
     {
         margin-left:auto;
         margin-right:auto;
     }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolderMenu" runat="server">
    <uc3:Menus ID="Menu1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolderMain" runat="server">
   <div class="main">
      
        <div class="tables">
        <div class="toplogo"><img src="Images/top.PNG" /></div>
        <table width="100%"  cellspacing="0" cellpadding="0">
                        <tr style="background: url(images/ws3.jpg) repeat-x; font-weight: bold;">
                            <td style=" width:100px; height:25px;">
                                所在区</td>
                            <td>
                                所在县</td>
                            <td>
                                监测点具体地址</td>
                            <td>
                                现场联系人1</td>
                            <td>
                                联系人1电话</td>
                            <td>
                                传感器节点数量</td>
                            <td>
                                传感器状态</td>
                        </tr>
            <asp:ListView ID="ListView1" runat="server" onitemdatabound="ListView1_ItemDataBound">
               <ItemTemplate>
                     <tr id="trItem" runat="server" >
                                    <td style="width:100px; height:40px;"> <font color="<%=status_color %>" >
                                        &nbsp;<%#Eval("m_area_name")%></font></td>
                                    <td><font  bgcolor="<%=status_color %>"> 
                                        &nbsp;<%#Eval("m_area_id")%></font></td>
                                    <td> 
                                        &nbsp;<a style="color:blue;" href="monitor_list.aspx?id=<%#Eval("index")%>"><strong><%#Eval("Addr")%></strong></a></td>
                                    <td><font > 
                                        &nbsp;<%#Eval("Contact_name1")%></font></td>
                                    <td><font  >
                                        &nbsp;<%#Eval("Contact_mobile1")%></font></td>
                                    <td><font  > 
                                        &nbsp;<%#data_Statusid(Eval("index").ToString())%>&nbsp;(个)
                                        </font>
                                    </td>
                                    <td><font> 
                                        &nbsp;<%#data_Status(Eval("index").ToString())%></font></td>
                                </tr>
               </ItemTemplate>
            </asp:ListView>
                    <tr><td colspan="7" style="width:579px;font-size:9pt;text-align:right; height:30px;">
             <asp:Label ID="Label4" runat="server" Text="当前页码为"></asp:Label>[
            <asp:Label ID="labPage" runat="server" Text="1"></asp:Label>&nbsp;]
            <asp:Label ID="Label5" runat="server" Text="总页码为"></asp:Label>[
             <asp:Label ID="labBackPage" runat="server" ></asp:Label>&nbsp;]
             &nbsp;<asp:LinkButton ID="lnkbtnOne" runat="server" Font-Underline="False" ForeColor="Red"
                OnClick="lnkbtnOne_Click">第一页</asp:LinkButton>
             &nbsp;<asp:LinkButton ID="lnkbtnUp" runat="server" Font-Underline="False" ForeColor="Red"
                 OnClick="lnkbtnUp_Click">上一页</asp:LinkButton>
             &nbsp;<asp:LinkButton ID="lnkbtnNext" runat="server" Font-Underline="False" ForeColor="Red"
                 OnClick="lnkbtnNext_Click">下一页</asp:LinkButton>&nbsp;<asp:LinkButton ID="lnkbtnBack" runat="server" Font-Underline="False" ForeColor="Red"
                 OnClick="lnkbtnBack_Click">最后一页</asp:LinkButton>&nbsp;&nbsp;

        </td></tr>
 </table>
  <div style=" margin-left:20%; margin-right:auto;"><uc1:Search ID="search" runat="server"/></div>
    </div>
 </div>

</asp:Content>
